package com.lhoverc.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: LiCheng
 * @CreateTime: 2025-04-16
 * @Description:
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ApplyEntity {
    //申请id
    private Integer id;
    //用户id
    private Integer userId;
    //访客id
    private Integer visitorId;
    //目的地
    private String destination;
    //照片
    private String visitorImage;
    //置信度
    private double confidence;
    //邀请码
    private String invitationCode;

    //到访时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime arriveTime;
    //离开时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveTime;

    //事由
    private String toDo;
    //状态
    private Integer state;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //是否被删除
    private Integer isDelete;
}
